package com.schoolinfo.dao;

import java.util.List;

import com.schoolinfo.model.User;

public interface UserDAO {

	public abstract void save(User transientInstance);

	public abstract void delete(User persistentInstance);

	public abstract User findById(java.lang.String id);

	public abstract List<User> findByExample(User instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List<User> findByName(Object name);

	public abstract List<User> findByPhone(Object phone);

	public abstract List<User> findByQq(Object qq);

	public abstract List findAll();

	public abstract User merge(User detachedInstance);

	public abstract void attachDirty(User instance);

	public abstract void attachClean(User instance);
	
	
	public void update(User transientInstance);

}